﻿<navigation:Page xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"  
           x:Class="ComToolkit.Demo.Views.Data"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Data Page">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel VerticalAlignment="Stretch">
            <TextBlock Text="ConnectionString" />
            <TextBox x:Name="ConnectionString" />
            <Button x:Name="ButtonConnect" 
                    Grid.Column="1" 
                    Content="Connect"
                    Width="200" 
                    HorizontalAlignment="Right" 
                    Click="ButtonConnect_Click" />
            <TextBox x:Name="SqlQuery" 
                     TextWrapping="Wrap" 
                     ScrollViewer.VerticalScrollBarVisibility="Visible" 
                     Height="100">
            </TextBox>
            <Button x:Name="ExecuteSqlQuery" 
                    Grid.Column="1" Content="Execute"
                    Width="200" 
                    HorizontalAlignment="Right" 
                    Click="ExecuteSqlQuery_Click" />
        </StackPanel>
        <data:DataGrid x:Name="DataGridResult"  
                       Grid.Row="1"
                       AutoGenerateColumns="False" 
                       VerticalAlignment="Stretch" 
                       HorizontalAlignment="Stretch"
                           >
        </data:DataGrid>
    </Grid>
</navigation:Page>
